module game
{
	export class Rocker extends egret.Sprite
	{
		public dragBtn:egret.Sprite;

		private backRadius = 100;
		private dragRadius = 25;

		public constructor()
		{
			super();
			this.init();
		}

		private init():void
		{
			//画个背景
			this.graphics.beginFill(0xff1111,0.7);
			this.graphics.drawCircle(this.backRadius,this.backRadius,this.backRadius);
			this.graphics.endFill();

			this.dragBtn = new egret.Sprite();
			this.dragBtn.graphics.beginFill(0x222222);
			this.dragBtn.graphics.drawCircle(0,0,this.dragRadius);
			this.dragBtn.graphics.endFill();

			this.addChild(this.dragBtn);
			this.dragBtn.x = this.backRadius;
			this.dragBtn.y = this.backRadius;
		}


	}
}